#include<stdio.h>

printb(int x,int n)
{
    if(n>0)
    {
        putchar('0'+((unsigned)(x&(1<<(n-1)))>>(n-1)));
        printb(x,n-1);
    }
}
int main()
{
    int x;
    printf("Input a number:");
    scanf("%d",&x);
    printf("Number of decimal form:%d\n",x);
    printf("It's binary form:\n");
    printb(x,sizeof(int)*8);
    putchar('\n');
}
